package com.jackchan.homework.sysw.entity;

import com.jackchan.homework.common.IdEntity;

import javax.persistence.*;

/**
 * Created by ch-hui on 15/12/20.
 * 常规成分
 */
@Entity
@Table(name = "t_nutrition_common")
public class Nutritive extends IdEntity{

    private Material material;

    // 干物质
    private Float dm;

    // 粗蛋白
    private Float cp;

    // 粗脂肪
    private Float ee;

    // 粗纤维
    private Float cf;

    // 无氮浸出物
    private Float nfe;

    // 粗灰分
    private Float ash;

    // 中洗纤维
    private Float ndf;

    // 酸洗纤维
    private Float adf;

    // 淀粉
    private Float starch;

    // 钙
    private Float ca;

    // 总磷
    private Float tp;

    // 有效磷
    private Float vp;

    @ManyToOne
    @JoinColumn(name = "material_id", referencedColumnName = "id")
    public Material getMaterial() {
        return material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }

    @Column(name = "dm")
    public Float getDm() {
        return dm;
    }

    public void setDm(Float dm) {
        this.dm = dm;
    }

    @Column(name = "cp")
    public Float getCp() {
        return cp;
    }

    public void setCp(Float cp) {
        this.cp = cp;
    }

    @Column(name = "ee")
    public Float getEe() {
        return ee;
    }

    public void setEe(Float ee) {
        this.ee = ee;
    }

    @Column(name = "cf")
    public Float getCf() {
        return cf;
    }

    public void setCf(Float cf) {
        this.cf = cf;
    }

    @Column(name = "nfe")
    public Float getNfe() {
        return nfe;
    }

    public void setNfe(Float nfe) {
        this.nfe = nfe;
    }

    @Column(name = "ash")
    public Float getAsh() {
        return ash;
    }

    public void setAsh(Float ash) {
        this.ash = ash;
    }

    @Column(name = "ndf")
    public Float getNdf() {
        return ndf;
    }

    public void setNdf(Float ndf) {
        this.ndf = ndf;
    }

    @Column(name = "adf")
    public Float getAdf() {
        return adf;
    }

    public void setAdf(Float adf) {
        this.adf = adf;
    }

    @Column(name = "starch")
    public Float getStarch() {
        return starch;
    }

    public void setStarch(Float starch) {
        this.starch = starch;
    }

    @Column(name = "ca")
    public Float getCa() {
        return ca;
    }

    public void setCa(Float ca) {
        this.ca = ca;
    }

    @Column(name = "tp")
    public Float getTp() {
        return tp;
    }

    public void setTp(Float tp) {
        this.tp = tp;
    }

    @Column(name = "vp")
    public Float getVp() {
        return vp;
    }

    public void setVp(Float vp) {
        this.vp = vp;
    }

}
